| 
                
               | 
              
                
               | 
              
                @@ -17,7 +17,7 @@ from TimeConvert import TimeConvert as tc 
               | 
            
            
            
              | 
                17
               | 
              
                17
               | 
              
                 from account.models import UserInfo 
               | 
            
            
            
              | 
                18
               | 
              
                18
               | 
              
                 from coupon.models import CouponInfo, UserCouponInfo 
               | 
            
            
            
              | 
                19
               | 
              
                19
               | 
              
                 from integral.models import SaleclerkSubmitLogInfo 
               | 
            
            
            
              | 
                20
               | 
              
                
               | 
              
                -from logs.models import AdministratorLoginLogInfo, MchInfoEncryptLogInfo 
               | 
            
            
            
              | 
                
               | 
              
                20
               | 
              
                +from logs.models import AdministratorLoginLogInfo, MchInfoEncryptLogInfo, ComplementCodeLogInfo 
               | 
            
            
            
              | 
                21
               | 
              
                21
               | 
              
                 from mch.models import (ActivityInfo, AdministratorInfo, BrandInfo, ConsumeInfoSubmitLogInfo, DistributorInfo, 
               | 
            
            
            
              | 
                22
               | 
              
                22
               | 
              
                                         LatestAppInfo, LatestAppScreenInfo, ModelInfo, OperatorInfo, ConsumeShotUnbindingInfo) 
               | 
            
            
            
              | 
                23
               | 
              
                23
               | 
              
                 from statistic.models import ConsumeModelSaleStatisticInfo, ConsumeSaleStatisticInfo, ConsumeUserStatisticInfo 
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -302,7 +302,13 @@ def consumer_info_api(request): 
               | 
            
            
            
              | 
                302
               | 
              
                302
               | 
              
                         status=True 
               | 
            
            
            
              | 
                303
               | 
              
                303
               | 
              
                     ).exists() 
               | 
            
            
            
              | 
                304
               | 
              
                304
               | 
              
                  
               | 
            
            
            
              | 
                305
               | 
              
                
               | 
              
                -    if dupload or unbound: 
               | 
            
            
            
              | 
                
               | 
              
                305
               | 
              
                +    is_complement_code = ComplementCodeLogInfo.objects.filter( 
               | 
            
            
            
              | 
                
               | 
              
                306
               | 
              
                +        model_id=model.model_id, 
               | 
            
            
            
              | 
                
               | 
              
                307
               | 
              
                +        sn=serialNo, 
               | 
            
            
            
              | 
                
               | 
              
                308
               | 
              
                +        status=True 
               | 
            
            
            
              | 
                
               | 
              
                309
               | 
              
                +    ).exists() 
               | 
            
            
            
              | 
                
               | 
              
                310
               | 
              
                + 
               | 
            
            
            
              | 
                
               | 
              
                311
               | 
              
                +    if dupload or unbound or is_complement_code: 
               | 
            
            
            
              | 
                306
               | 
              
                312
               | 
              
                         act = None 
               | 
            
            
            
              | 
                307
               | 
              
                313
               | 
              
                         during_activity = False 
               | 
            
            
            
              | 
                308
               | 
              
                314
               | 
              
                     else: 
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -340,7 +346,7 @@ def consumer_info_api(request): 
               | 
            
            
            
              | 
                340
               | 
              
                346
               | 
              
                         unbound=unbound 
               | 
            
            
            
              | 
                341
               | 
              
                347
               | 
              
                     ) 
               | 
            
            
            
              | 
                342
               | 
              
                348
               | 
              
                  
               | 
            
            
            
              | 
                343
               | 
              
                
               | 
              
                -    if not dupload and not unbound: 
               | 
            
            
            
              | 
                
               | 
              
                349
               | 
              
                +    if not dupload and not unbound and not is_complement_code: 
               | 
            
            
            
              | 
                344
               | 
              
                350
               | 
              
                         for act in activities: 
               | 
            
            
            
              | 
                345
               | 
              
                351
               | 
              
                             try: 
               | 
            
            
            
              | 
                346
               | 
              
                352
               | 
              
                                 coupon = CouponInfo.objects.get(coupon_id=act['coupon_id']) 
               |